/*
 * Copyright 2006 - 2007 The MITRE Corporation. All rights reserved.
 * Written by Ayal Spitz
 *
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1
 * (the "License"); you may not use this file except in compliance
 * with the License and the following two conditions:
 * 
 * The US Government will not be charged any license fee and/or royalties 
 * related to this software.
 * 
 * Neither name of The MITRE Corporation; nor the names of its contributors
 * may be used to endorse or promote products derived from this software
 * without specific prior written permission.
 *
 * You may obtain a copy of the License at
 *
 *     http://www.gnu.org/copyleft/lesser.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */

package org.mitre.streamingRSS.xmpp;

import java.util.List;

import org.jivesoftware.smackx.muc.MultiUserChat;

/**
 * The SubListener interface defines the interface of any listener interested
 * in listening to subscriptions
 * 
 * @author Ayal Spitz
 *
 */
public abstract class SubListener{
	protected MultiUserChat		muc = null;
	
	/**
	 * This method sets the MUC that the subscription is listening too
	 */
	public void setMUC(MultiUserChat muc){ this.muc = muc; }
	
	/**
	 * This method is called to pass all the messages recived 
	 * 
	 * @param msgList	A list of messages
	 */
	public abstract void newMsgs(List<String> msgList);
}
